import getlink from '@/api/getapi.js'
let travel = {
    state: {
        nav: []
    },
    mutations: {
        upnav(state, payload) {
            state.nav = payload.data
        }
    },
    actions: {
        demotravel(context,payload) {
            getlink(payload).then((ok) => {
                context.commit("upnav", { data: ok.data})
                console.log(ok.data);
            })
        }
    },
}
export default travel